.app
{
	--title-var-height: 30px;
}

.app.hide-title-bar
{
	--title-var-height: 0px;
}

.title-bar
{
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 30px;
	padding-top: 1px;
	box-sizing: border-box;
	z-index: 1000;
	transition: 0.2s;
	background-color: var(--md-sys-color-surface-container);
	color: var(--md-sys-color-on-surface-variant);
	border-bottom: 1px solid var(--md-sys-color-surface-variant);
	-webkit-app-region: drag;
}

.hide-title-bar .title-bar
{
	display: none;
}

.title-bar-logo
{
	height: 28px;
	width: 28px;
	float: left;
	padding: 0px 0px 0px 1px;
	display: none;
}

.title-bar-logo img
{
	height: 16px;
	margin: 6px;
}

.title-bar-menu
{
	float: left;
	height: 28px;
	/*padding: 3px 0px;*/
	padding: 3px 4px;
	box-sizing: border-box;
	display: flex;
	-webkit-app-region: no-drag;
	margin-left: env(titlebar-area-x);
}

.title-bar-menu.label-medium
{
	font-weight: 400 !important;
}

.title-bar-menu > div
{
	height: 22px;
	line-height: 22px;
	padding: 0px 8px;
	border-radius: 4px;
}

.title-bar-menu > div:hover
{
	background-color: var(--md-sys-color-on-surface-variant-2);
}

.title-bar-menu > div:active,
.title-bar-menu > div.active
{
	background-color: var(--md-sys-color-on-surface-variant-4);
}

.title-bar-menus.label-medium
{
	font-weight: 400 !important;
}

.title-bar-menus > div
{
	position: fixed;
	z-index: 1001;
	background-color: var(--md-sys-color-surface);
	border: 1px solid var(--md-sys-color-surface-variant);
	border-radius: 8px;
	padding: 4px;
	-webkit-app-region: no-drag;
	top: 26px;
	display: none;
	box-shadow: 0px 4px 6px rgb(0, 0, 0, 0.05);
}

.title-bar-menus > div > div
{
	height: 30px;
	line-height: 30px;
	padding: 0px 24px;
	border-radius: 4px;
	transition: 0.2s;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
}

.title-bar-menus > div > div.separator
{
	display: block;
	height: 0px;
	margin: 4px 0px;
	border-bottom: 1px solid var(--md-sys-color-surface-variant);
	width: calc(100% + 8px);
	margin-left: -4px;
	padding: 0px;
}

.title-bar-menus > div > div:hover
{
	background-color: var(--md-sys-color-secondary-container);
}

.title-bar-menus > div > div:active,
.title-bar-menus > div > div.active
{
	background-color: var(--md-sys-color-secondary-container);
}

.title-bar-menus > div > div > span
{
	display: block;
	color: color-mix(in srgb, var(--md-sys-color-on-surface), transparent 50%);
	padding-left: 32px;
}